home *** CD-ROM | disk | FTP | other *** search
- /*
- TransSkel demonstration: Minimal application
-
- This program does nothing but put up an Apple menu with desk
- accessories, and a File menu with a Quit item. The user can
- run DA's until Quit is selected or command-Q is typed.
-
- The project should include this file, TransSkel.c (or a project
- built from TransSkel.c), and MacTraps.
-
- 27 June 1986 Paul DuBois
- */
-
- # include <MenuMgr.h>
- # define nil 0L
-
-
- DoFileMenu (item)
- int item; /* ignored - there's only Quit */
- {
- SkelWhoa (); /* tell SkelMain to quit */
- }
-
-
- main ()
- {
- MenuHandle m;
-
- SkelInit (); /* initialize */
- SkelApple (nil, nil); /* handle desk accessories */
- m = NewMenu (2, "\pFile"); /* create menu */
- AppendMenu (m, "\pQuit/Q");
- SkelMenu (m, DoFileMenu, nil); /* tell TransSkel to handle it */
- SkelMain (); /* loop 'til Quit selected */
- SkelClobber (); /* clean up */
- }
-